<?xml version="1.0" encoding="utf-8"?>
<lcfg:config 
	xmlns:lcfg="http://schemas.icitadel.com/Lazarus/Config.xsd"
	title="RCS Reuse - Analysis DB" 
	folder="output" 
	compiledoutput="compiled.xml"
	manifestoutput="manifest.xml">
   <lcfg:engine-templates>
      <lcfg:class-reference name="Source" assembly="OR.Lazarus.Library" class="OR.Lazarus.Library.DataTier.Source.ProjectDetail" />
      <lcfg:class-reference name="Compiled" assembly="OR.Lazarus.Library" class="OR.Lazarus.Library.DataTier.Compiled.ProjectDetail" />
      <lcfg:class-reference name="Validator" assembly="OR.Lazarus.Library" class="OR.Lazarus.Library.DataTier.SourceValidator" />
      <lcfg:class-reference name="Compiler" assembly="OR.Lazarus.Library" class="OR.Lazarus.Library.DataTier.SourceCompiler" />
      <lcfg:class-reference name="Generator" assembly="OR.Lazarus.Library" class="OR.Lazarus.Library.DataTier.SourceGenerator" />
   </lcfg:engine-templates>
   <lcfg:tiers>
      <lcfg:tier type="Documentation" folder="Documentation">
         <lcfg:includes>
            <lcfg:include source="default.css" />
         </lcfg:includes>
         <lcfg:transforms library="Documentation">
            <lcfg:transform type="compiled" source="DBDD.xsl" output="DBDD.htm" />
         </lcfg:transforms>
      </lcfg:tier>
		<lcfg:tier type="Database" folder="Database">
			<lcfg:transforms library="Database">
				<lcfg:transform type="compiled" source="initial-data.xsl" output="InitialData.sql" output-type="Database.InitialData" />

				<lcfg:transform type="compiled" source="dbproc-create.xsl" output="CreateProcs.sql" folder="Procedures" output-type="Database.StoredProcedure.Create" />
				<lcfg:transform type="compiled" source="dbproc-alter.xsl" output="sql" prefix="sp" folder="Procedures" filter="//lzc:method" output-type="Database.StoredProcedure.Alter" overwrite="Regions" />

				<lcfg:transform type="manifest" source="procedure-alter.xsl" output="AlterProcs.cmd" folder="Procedures" />
			</lcfg:transforms>
      </lcfg:tier>
		<lcfg:tier type="Analysis Database" folder="Database\Analytical">
			<lcfg:transforms library="Database\Analytical">
				<lcfg:transform type="compiled" source="tables.xsl" output="Tables.sql" />
				<lcfg:transform type="compiled" source="droptabledata.xsl" output="DropTableData.sql" />
			</lcfg:transforms>
		</lcfg:tier>
   </lcfg:tiers>
   <lcfg:datasources>
      <lcfg:datasource title="SQL2K" user="sa" password="lazarus" schema="syntax" location="KIRREL" />
   </lcfg:datasources>
</lcfg:config>

